<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
 <%-- <c:if test="${p.currentPage!=1}">
   <a href="#?currentPage=${p.currentPage-1}">上一页</a>
</c:if> --%>
<%-- <c:choose>
<c:when test="${p.currentPage!=1}">
  <a href="#?currentPage=${p.currentPage-1}">上一页</a>
</c:when>
 <c:when test="${p.currentPage==p.totalPage}">
<a href="#?currentPage=${p.totalPage}">末页</a>
</c:when>
<c:when test="${p.currentPage!=p.totalPage}">
 <a href="#?currentPage=${p.currentPage+1}">下一页</a>
</c:when> 
<c:otherwise>
  <a href="#?currentPage=1}">首页</a>
</c:otherwise>
</c:choose>  --%>
<table>
<tr><td>序号</td><td>编号</td><td>新闻标题</td></tr>
<c:forEach items="${list}" var="News" varStatus="vs">
<tr><td>${vs.index+1}</td><td>${News.xId}</td><td>${News.title}</td></tr>
</c:forEach>
</table>
</body>
</html>